package com.zb.test;

import java.util.List;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.zb.Service.NoteService;
import com.zb.entity.Note;

public class Tset6 {
	public static void main(String[] args) {
		ApplicationContext ac = new ClassPathXmlApplicationContext(
				"applicationContext.xml");
		NoteService ns = (NoteService)ac.getBean("NoteService");
		List<Note> list = ns.findNotePage(1, 5, 4);
		for (Note note : list) {
			System.out.println(note.getId()+note.getContent()+note.getUser().getId()+note.getTital());
		}
	}
}
